//
//  FoundViewController.m
//  safeLady
//
//  Created by Justsoso on 2017/7/3.
//  Copyright © 2017年 xmy. All rights reserved.
//

#import "FoundViewController.h"

@interface FoundViewController ()
@property (nonatomic, strong) UILabel *label;
@property (nonatomic, strong) UIButton *left_menu;

@end

@implementation FoundViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title = @"发现";
//    [[self.navigationController.navigationBar.subviews objectAtIndex:2] setHidden:YES];
    
    self.label = [[UILabel alloc] init];
    self.label.text = @"发现";
    self.label.textColor = [UIColor blackColor];
    self.label.font = [UIFont systemFontOfSize:100.0f];
    self.label.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:self.label];
    [self.label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.equalTo(@0);
    }];
    
    [self setCenterButton];
    
}
-(void)setCenterButton{
    self.left_menu = [UIButton buttonWithType:UIButtonTypeCustom];
    [self.left_menu setImage:[UIImage imageNamed:@"个人中心"]  forState:UIControlStateNormal];
    [self.left_menu setFrame:CGRectMake(0, 0, 35, 44)];
    [self.left_menu addTarget:self action:@selector(showUserCenter:) forControlEvents:UIControlEventTouchUpInside];
    UIBarButtonItem*userHeadItem = [[UIBarButtonItem alloc] initWithCustomView:self.left_menu];
    [self.navigationItem setLeftBarButtonItem:userHeadItem animated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
